import {
    HashRouter as Router,
    Switch,
    Route,
} from "react-router-dom";

import App from '../view/App'
import Login from '../view/login'
import NotExist from '../view/NotExist'
console.log(Login)
export default function Routers() {
    return (
        <Router>
            <Switch>
                <Route exact path="/" component={App}></Route>
                <Route exact path="/login" component={Login}></Route>
                <Route component={NotExist}></Route>
            </Switch>
        </Router >
    );
}
